<style>
	.layui-form-label{
		width: 86px;
	}
</style>
<form class="layui-form lyear-layout-content" method="post" action="{:url('admin/project/orderedit')}">

  <div class="layui-form-item">
    <label class="layui-form-label">预约ID</label>
    <div class="layui-input-block">
      <input type="text" name="id" disabled value="{$Order['id']}" class="layui-input">
	  <input type="hidden" name="id" value="{$Order['id']}" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">预约人</label>
    <div class="layui-input-block">
      <input type="text" name="userid" disabled value="{$Order['user']['nickname']}" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">预约电话</label>
    <div class="layui-input-block">
      <input type="text" name="userid" disabled value="{$Order['address']['mobile']}" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">预约地址</label>
    <div class="layui-input-block">
      <input type="text" name="addrid" disabled value="{$Order['region_text']}" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">服务类型</label>
    <div class="layui-input-block">
      <input type="text" name="projectid" disabled value="{$Order['project']['name']}" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">预约备注</label>
    <div class="layui-input-block">
      <input type="text" name="content" value="{$Order['content']}" required  lay-verify="required" placeholder="请输入预约备注" autocomplete="off" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">预约时间</label>
    <div class="layui-input-block">
      <input type="text" name="createtime" disabled value="{$Order['createtime']}" required  lay-verify="required" placeholder="请输入预约时间" autocomplete="off" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">预约价格</label>
    <div class="layui-input-block">
      <input type="text" name="price" required value="{$Order['price']}" lay-verify="required" placeholder="请输入预约价格" autocomplete="off" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">预约状态</label>
    <div class="layui-input-block">
      <select name="status" lay-verify="required">
        <option value=""></option>
		{foreach $StatusList as $item}
           <option {$Order.status == $item['status'] ? 'selected' : ''} value="{$item['status']}">{$item['name']}</option>
		{/foreach}
      </select>
    </div>
  </div>
  
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit>立即填写</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
	  <a href="{:url('admin/project/order')}" class="layui-btn layui-btn-primary">返回</a>
    </div>
  </div>
</form>
 
<script>
//Demo
layui.use('form', function(){
  
});
</script>